﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.ChartView;

namespace DIST.LR.ZHJG.Controls.Chart
{
    public class ucPieViewModel : ViewModelBase
    {
        #region pie 数据绑定

        public List<PieItem> PieData
        {
            get
            {
                List<PieItem> result = new List<PieItem>();
                result.Add(new PieItem("招标", 61d));
                result.Add(new PieItem("拍卖", 27d));
                result.Add(new PieItem("挂牌", 12d));
                return result;
            }
        }

        #endregion
    }

    public class PieItem
    {
        private string _catagory;
        private double _value;
        public string Catagory
        {
            get
            {
                return this._catagory;
            }
            set
            {
                this._catagory = value;
            }
        }
        public double Value
        {
            get
            {
                return this._value;
            }
            set
            {
                this._value = value;
            }
        }

        public PieItem(string catagory, double value)
        {
            this.Catagory = catagory;
            this.Value = value;
        }
    }

    


}
